import config from './gameconfig.js';
import Block from './block.js';
import Tank from './tank.js';

class PlayerTank extends Tank{
  constructor(x: number, y: number,imgSrc?: string,  width?: number, height?: number, life?: number, speed?: number|undefined) {
    imgSrc = config.PlayerSprites[0];
    super(x, y,imgSrc,  width, height,life);
  }
  controlMove(col:Array<Block>):boolean{
    this.chageImage();
    return this.move(col);
  }
}
export default PlayerTank;